package pers.mobian.springfirst.firstTest;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import pers.mobian.springfirst.sameBeanName.Cat;

/**
 * @Date 2021/6/27 11:14
 * @Created mobian
 * @Description
 */
public class Test2 {
	public static void main(String[] args) {

		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-test.xml");
		System.out.println((Cat) applicationContext.getBean("cat"));
		User user = (User) applicationContext.getBean("user");

		System.out.println(user);

//		System.out.println(applicationContext.isSingleton("user333"));
	}
}
